slip off the edge

Translations
соскользнуть с края
He almost slipped off the edge while climbing the mountain.
Он чуть не соскользнул с края, когда поднимался на гору.